package com.lj.frame.file.service;


import com.lj.commons.exception.YerException;
import com.lj.frame.file.entity.UploadFile;

import java.io.InputStream;

public interface FileService {
    UploadFile findByMd5(String md5);

    UploadFile findByPath(String path);

    void upload(UploadFile uploadFile, InputStream inputStream, String contentType) throws YerException;
    void upload(UploadFile uploadFile, InputStream inputStream) throws YerException;
}
